﻿@model Testicide.Models.Module


@{
    ViewBag.Title = "Edit";
}


@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    
        <div class="order">
            <fieldset>
                <legend>Edit Module</legend>

                @Html.HiddenFor(model => model.ID)

                <div class="editor-label">
                    <b> @Html.LabelFor(model => model.Name)</b>
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>

                <div class="editor-label">
                    <b> @Html.LabelFor(model => model.Date)</b>
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Date)
                    @Html.ValidationMessageFor(model => model.Date)
                </div>

                <div class="editor-label">
                    <b>@Html.LabelFor(model => model.ProjectID, "Project Name")</b>
                </div>
                <div class="editor-field">
                    @Html.DropDownList("ProjectID", String.Empty)
                    @Html.ValidationMessageFor(model => model.ProjectID)
                </div>
                <br />
                <p>
                    <input id="Edit" type="submit" value="Save" />
                </p>
            </fieldset>
            <div>
                @Html.ActionLink("Back to Modules", "Index")
            </div>

        </div>
    
}
